const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // token
  token: state => state.user.token,
  // 用户名的快捷访问
  name: state => state.user.UserInfo.username,
  //  userID
  userId: state => state.user.UserInfo.userId,
  // 用户头像
  userPhoto: state => state.user.UserInfo.staffPhoto,
  // 公司ID
  companyId: state => state.user.UserInfo.companyId,
  // 路由
  routes: state => state.permission.routes,
  // userInfo
  UserInfo: state => state.user.UserInfo
}
export default getters
